<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../tpl/head.jsp"%>
<link rel="stylesheet" href="statics/css/BasicData/message.css">
<div  class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-header layui-bg-cyan">
            <span>我的记事本</span>
        </div>
        <div class="layui-card-body">
            <div class="layui-row">
                <div class="layui-col-md2">
                    <span class="usergroupmenutit">记事本类型</span>
                    <ul class="layui-nav layui-nav-tree layui-inline" id="messagenav" lay-filter="messagenav" style="margin-right: 10px;">
                        <li class="layui-nav-item"><a href="javascript:void(0)">待办事项</a></li>
                        <li class="layui-nav-item"><a href="javascript:void(0)">公告栏</a></li>
                        <li class="layui-nav-item"><a href="javascript:void(0)">个人备忘录</a></li>
                        <li class="layui-nav-item"><a href="javascript:void(0)">待审批事项</a></li>
                    </ul>
                </div>
                <div class="layui-col-md10" id="myTable">
                    <table class="layui-table" id="message" lay-filter="messagetable"></table>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/html" id="toolbarDemo" >
    <div style="justify-content: space-between;display: flex;">
        <div id="buttonDiv">
            {{# if(messagetype==3 ){ }}
            <button id="buttonDivOne"  class="layui-btn layui-btn-sm layui-btn-danger"  lay-event="del"><i class="layui-icon layui-icon-delete"></i>批量删除</button>
            {{# } }}
            <button id="buttonDivTwo"  class="layui-btn layui-btn-sm layui-btn-danger"  lay-event="read"><i class="layui-icon layui-icon-delete"></i>批量已读</button>
        </div>
        <span id="arrangement"></span>
        <span id="announcement"></span>
        <span id="customerContact"></span>
        <span id="pendingApproval"></span>
    </div>
</script>
<script type="text/html" id="messageeditor">
<%-- 未读消息，显示已读按钮 --%>
    {{# if(d.readStatus=='0' ){ }}
        <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="read">已读</a>
    {{# } }}
    {{# if(messagetype==3 || d.createCode==user.code){ }}
        <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
    {{# } }}
</script>
<%@ include file="../tpl/foot.jsp"%>
<script src="statics/js/BasicData/messageDetail.js"></script>